home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
utils
/
assist2.arc
/
INCLUDE.H
< prev
Wrap
C/C++ Source or Header
|
1988-06-29
|
3KB
|
123 lines
extern long bios();
extern long xbios();
extern long gemdos();
#define Floprd(a,b,c,d,e,f,g) xbios(8,a,b,c,d,e,f,g)
#define Flopwr(a,b,c,d,e,f,g) xbios(9,a,b,c,d,e,f,g)
#define Flopfmt(a,b,c,d,e,f,g,h,i) xbios(10,a,b,c,d,e,f,g,h,i)
#define Protobt(a,b,c,d) xbios(18,a,b,c,d)
#define Settime(a) xbios(22,a)
#define Gettime() xbios(23)
#define Dosound(a) xbios(32,a)
#define Supexec(a) xbios(38, a)
#define Cconout(a) gemdos(0x2,a)
#define Dsetdrv(a) gemdos(0x0e,a)
#define Dgetdrv() (int)gemdos(0x19)
#define Fsetdta(a) gemdos(0x1a,a)
#define Tgetdate() (int)gemdos(0x2a)
#define Tsetdate(a) gemdos(0x2b,a)
#define Tgettime() (int)gemdos(0x2c)
#define Tsettime(a) gemdos(0x2d,a)
#define Fgetdta() gemdos(0x2f)
#define Dfree(a,b) gemdos(0x36,a,b)
#define Dcreate(a) gemdos(0x39,a)
#define Dsetpath(a) gemdos(0x3b,a)
#define Dgetpath(a,b) gemdos(0x47,a,b)
#define Malloc(a) gemdos(0x48,a)
#define Mfree(a) gemdos(0x49,a)
#define Fsfirst(a,b) gemdos(0x4e,a,b)
#define Mediach(a) bios(9,a)
/***********************************************************/
#define MAX_DEPTH 8 /* max depth of search or draw */
typedef struct grect
{
int g_x;
int g_y;
int g_w;
int g_h;
} GRECT;
typedef struct text_edinfo
{
char *te_ptext; /* ptr to text (must be 1st) */
char *te_ptmplt; /* ptr to template */
char *te_pvalid; /* ptr to validation chrs. */
int te_font; /* font */
int te_junk1; /* junk word */
int te_just; /* justification- left, right... */
int te_color; /* color information word */
int te_junk2; /* junk word */
int te_thickness; /* border thickness */
int te_txtlen; /* length of text string */
int te_tmplen; /* length of template string */
} TEDINFO;
typedef struct object
{
int ob_next; /* -> object's next sibling */
int ob_head; /* -> head of object's children */
int ob_tail; /* -> tail of object's children */
unsigned int ob_type; /* type of object- BOX, CHAR,... */
unsigned int ob_flags; /* flags */
unsigned int ob_state; /* state- SELECTED, OPEN, ... */
char *ob_spec; /* "out"- -> anything else */
int ob_x; /* upper left corner of object */
int ob_y; /* upper left corner of object */
int ob_width; /* width of obj */
int ob_height; /* height of obj */
} OBJECT;
#define NORMAL 0x0 /* Object states */
#define SELECTED 0x1
#define CROSSED 0x2
#define CHECKED 0x4
#define DISABLED 0x8
#define OUTLINED 0x10
#define SHADOWED 0x20
/****************************************************************/
/*** Some define's missing in the MEGAMAX-compiler ***/
/****************************************************************/
#define TRUE 1
#define FALSE 0
#define OB_STATE(x) (tree + (x) *sizeof(OBJECT)+10)
#define ADDR /**/
#define LBGET(x) ((char)*((char *)(x)))
#define LBSET(x,y) ( *((char *)(x))=y)
#define LWGET(x) ((int) *((int *)(x)))
#define LWSET(x,y) ( *((int *)(x)) = y)
#define LLGET(x) ( *((long *)(x)))
#define LLSET(x,y) ( *((long *)(x)) = y)
#define LBYTE0(x) ( *((x)+3) )
#define LBYTE1(x) ( *((x)+2) )
#define LBYTE2(x) ( *((x)+1) )
#define LBYTE3(x) ( *(x) )
extern char *malloc();
typedef struct dta_buffer
{
char dummy[21];
char file_attr;
int time;
int date;
long size;
char name[14];
} DTABUF;